import request from '@/utils/request'

export function getCouponList (data) {
  return request({
    url: '/api/coupon/index',
    method: 'post',
    data
  })
}
export function createCoupon (data) {
  return request({
    url: '/api/coupon/create ',
    method: 'post',
    data
  })
}
export function updateCoupon (data) {
  return request({
    url: '/api/coupon/update ',
    method: 'post',
    data
  })
}
export function deleteCoupon (data) {
  return request({
    url: '/api/coupon/delete  ',
    method: 'post',
    data
  })
}
export function importCoupon (data) {
  return request({
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    url: '/api/coupon/import  ',
    method: 'post',
    data
  })
}
